package com.httpDemo.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.httpDemo.doMain.User;

@Configuration // 相当于application-a.xml
public class JavaConfigA {

	@Bean // 相当于<bean id="user" class="com.httpDemo.doMain.User"/>
	public User user() {
		return new User(1, "zhangsan", "北京市朝阳区");
	}
}
